/*
* ECARX Technology Limited is the owner of the copyright and the trade secret of this software.
* Without permission, no one has the right to obtain, disclose or use this software in any way.
*/

package ecarx.xsf.notificationcenter.base.push.model.payload;

import android.os.Parcel;
import android.os.Parcelable;

import java.util.List;


public class PushSmartCard implements Parcelable {
    private List<PushMsgEvent> cardevent;

    public PushSmartCard() {
    }

    public PushSmartCard(List<PushMsgEvent> cardevent) {
        this.cardevent = cardevent;
    }

    protected PushSmartCard(Parcel in) {
        cardevent = in.createTypedArrayList(PushMsgEvent.CREATOR);
    }

    @Override
    public void writeToParcel(Parcel dest, int flags) {
        dest.writeTypedList(cardevent);
    }

    @Override
    public int describeContents() {
        return 0;
    }

    public static final Creator<PushSmartCard> CREATOR = new Creator<PushSmartCard>() {
        @Override
        public PushSmartCard createFromParcel(Parcel in) {
            return new PushSmartCard(in);
        }

        @Override
        public PushSmartCard[] newArray(int size) {
            return new PushSmartCard[size];
        }
    };

    public List<PushMsgEvent> getCardevent() {
        return cardevent;
    }
}
